package com.pug.zixun.auto;

import org.pug.generator.GeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author 飞哥
 * @Title: 学相伴出品
 * @Description: 飞哥B站地址：https://space.bilibili.com/490711252
 * 记得关注和三连哦！
 * @Description: 我们有一个学习网站：https://www.kuangstudy.com
 * @date 2022-05-23$ 14:33$
 */
@Component
public class GeneratorCommand implements CommandLineRunner {
    @Autowired
    private GeneratorService generatorService;

    @Override
    public void run(String... args) throws Exception {
        //File file = ResourceUtils.getFile("classpath:static/api.html");
        //generatorService.createApi("com.pug.zixun.controller",file.getParentFile().getAbsolutePath(),file.getName());
    }
}
